<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap {

	protected function _initDb() {
        $options = $this->getOption('resources');
        $db = Zend_Db::factory($options['db']['adapter'],$options['db']['params']);
        Zend_Registry::set('db',$db);
	}

	protected function _initResourceAutoloader()
	{
	     $resourceLoader = new Zend_Loader_Autoloader_Resource(array(
	        'basePath'  => APPLICATION_PATH,
	        'namespace' => 'Application',
	     ));
	
	     $resourceLoader->addResourceType('business', 'business', 'Business');
	}
}